package com.open.capacity.talented.dao;

import com.open.capacity.talented.dto.IndustryEditDto;
import com.open.capacity.talented.dto.QueryByIndustryIdsDto;
import com.open.capacity.talented.dto.UserIndustryDto;
import com.open.capacity.talented.model.Industry;
import com.open.capacity.talented.vo.TalentedByIndustryVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IndustryDao{
    List<UserIndustryDto> queryTalentedWithIndustryByPageAndLimit(Integer enabled);
    List<Long> queryIndustryIdsByUserId(Long userId);

    List<Industry> queryIndustryByParentId(Long parentId);

    List<TalentedByIndustryVo> queryTalentedByIndustryIds(@Param("d") QueryByIndustryIdsDto dto);

    List<Industry> queryIndustryByIds(@Param("p") List<Long> ids);

    List<Industry> queryAllIndustryList();

    int deleteAllIndustryByUserId(Long userId);

    int insertIndustrysByUserId(IndustryEditDto dto);
}
